#include "Generate_C_std.h"

class Pattern_return : public Pattern
{
	bool match(Statement* that)
	{
		ret = new Wildcard<Return>;
		return that->match (ret);
	}

	void generate_code(Generate_C* gen)
	{
		INST (buf, "return", ret->value->rvalue, ret->value);
	}

protected:
	Wildcard<Return>* ret;
};

CREATE(Pattern_return);
